import { removeStorage } from '@/utils/storage'
export default function() {
  const handleHistoryClear = (historys) => {
    historys.splice(0, historys.length)
    removeStorage('search_history')
  }

  return {
    handleHistoryClear
  }
}